package org.jeecg.modules.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.vo.ProjectProfessorStar;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 项目所需专家抽取状态
 * @Author: jeecg-boot
 * @Date:   2020-07-06
 * @Version: V1.0
 */
@Data
@TableName("diy_project_professor_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="project_professor_info对象", description="项目所需专家抽取状态")
public class ProjectProfessorInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String projectName;
	/**项目类型*/
	@Excel(name = "项目类型", width = 15)
    @ApiModelProperty(value = "项目类型")
    private String projectType;
	/**项目简要说明*/
	@Excel(name = "项目简要说明", width = 15)
    @ApiModelProperty(value = "项目简要说明")
    private String projectBrief;
	/**项目附件*/
	@Excel(name = "项目附件", width = 15)
    @ApiModelProperty(value = "项目附件")
    private String projectFile;
    /**专家开始参见项目的时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "专家开始参见项目的时间")
	private Date professorWorkBeginTime;
    /**专家开始参见项目的地址*/
    @Excel(name = "专家开始参见项目的地址", width = 15)
    @ApiModelProperty(value = "专家开始参见项目的地址")
	private String professorWorkAddress;
	/**项目抽取状态*/
    @Excel(name = "项目抽取状态", width = 15)
    @ApiModelProperty(value = "项目抽取状态")
	private projectStage projectStatus;
    @Excel(name = "项目评价", width = 15)
    @ApiModelProperty(value = "项目评价")
    private String projectComment;
    /**
     * 项目拥有的专家类型
     */
    @TableField(exist = false)
    private List<DiyProjectOwnProfessorType> projectOwnProfessorType;
    /**
     * 项目选中的专家
     */
    @TableField(exist = false)
    private List<ProjectProfessorStar> projectOwnProfessorList;


    /**项目来源*/
    @Excel(name = "项目来源", width = 15)
    @ApiModelProperty(value = "项目来源")
    private String projectFrom;
    /**项目预计评审时长*/
    @Excel(name = "项目预计评审时长", width = 15)
    @ApiModelProperty(value = "项目预计评审时长")
    private String projectExpectTime;
    /**项目金额*/
    @Excel(name = "项目金额", width = 15)
    @ApiModelProperty(value = "项目金额")
    private String projectAmount;
    /**项目结束附件*/
    @Excel(name = "项目结束附件", width = 15)
    @ApiModelProperty(value = "项目结束附件")
    private String projectOverFiles;

    /**
     * 项目抽取专家的状态
     * 开始（未开始）
     * 完成
     * 抽取中
     */
    public static enum projectStage{
        BEGIN,
        RUNNING,
        FINISH,
        WARN,
        WAIT,
        OVER,
        未抽取,
        抽取中,
        已完成,
        专家库人数不足,
        待确认,
        已结束
    }

}
